import { createStore, applyMiddleware,  } from 'redux';
// 引入异步处理中间价
import thunk from 'redux-thunk'
import reducer from './reducer'

const store = createStore(
    reducer,
    applyMiddleware(thunk)
  )

console.log('store:', store)

export default store;

//   仓库
//    | Provider
// react-redux          // 命令
//    | connect
//   组件



